<?PHP
require_once ("./include/membersite_config.php");

if (isset ( $_POST ['submitted'] )) {
	if ($fgmembersite->Login ()) {
		$fgmembersite->RedirectToURL ( "trivia.php" );
	}
}

if (isset ( $_POST ['registered'] )) {
	if ($fgmembersite->RegisterUser ()) {
		$fgmembersite->RedirectToURL ( "thank-you.php" );
	}
}

?>
<!DOCTYPE html> 
<html lang="en"> 
<head> 
<meta http-equiv='Content-Type' content='text/html' charset='iso-8859-1' />
<title>Ingrese a la Trivia</title> 
<meta name="description" content="Trivia control login">
</head>
<?php include 'imports.php'?>
</head>
<body>
<?php include 'navbarOutside.php'; ?>
<div class="container">
<!-- <row class="span4"> -->
<!-- <div class="tabbable"> -->
<ul class="nav nav-pills">
<li class="active"><a href="#1" data-toggle="tab" class="red">Ingreso</a></li>
<li class=""><a href="#2" data-toggle="tab"  class="red">Registro</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="1">
<?php include 'login.php'; ?>
</div>
<div class="tab-pane fade" id="2">
<?php include 'register.php'; ?>
</div>
</div>
<!-- </div> -->
</div>

</body>
</html>  
  


